﻿<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html" ; charset="utf-8" />
    <title>教务信息查询</title>
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />
    <link
      href="../../../layer_v2.1/layer/skin/layer.css"
      rel="stylesheet"
      type="text/css"
    />
    <link
      href="../../../bstable/css/bootstrap.min.css"
      rel="stylesheet"
      type="text/css"
    />
    <link
      href="../../../bstable/css/bootstrap-table.css"
      rel="stylesheet"
      type="text/css"
    />
    <style>
      .tabe_div {
        padding: 30px 50px;
      }

      h4 {
        margin-bottom: 20px;
      }

      .con {
        display: flex;
        align-content: center;
        justify-content: space-between;
        margin-top: 15px;
      }

      .con input {
        width: 100px;
      }

      .con input.form_input {
        width: 210px;
      }

      .l-section {
        border-bottom: 1px solid #ccc;
        padding-bottom: 30px;
        margin-bottom: 40px;
      }
    </style>
  </head>

  <body>
    <div class="tabe_div">
      <div class="l-section">
        <h4>学历提升</h4>
        <div class="con">
          <div>
            <label for="">学历层次：</label>
            <a class="find_a">学历层次：</a>
            <input
              type="text"
              class="form_input text_ient xl-input"
              placeholder="请输入学历层次"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="xl-btn" />
        </div>
        <div class="con">
          <div>
            <label for=""
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;学校：</label
            >
            <a class="find_a">学历层次：</a>
            <select
              class="form_select xl-select xlxx-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            ></select>
            <a class="find_a" style="margin-left: 20px">学校名称：</a>
            <input
              type="text"
              class="xlcc-input form_input text_ient"
              placeholder="请输入学校"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="xx-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">学历专业：</label>
            <a class="find_a">学历层次：</a>
            <select
              id="xl-cc"
              class="form_select xl-select zy-cc"
              style="padding-left: 1%; width: 210px; background: #fff"
              onchange="querySchool(this)"
            ></select>
            <a class="find_a" style="margin-left: 20px">学校名称：</a>
            <select
              class="form_select xx-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            >
              <option value=" ">请选择</option>
            </select>
            <a class="find_a" style="margin-left: 20px">专业：</a>
            <input
              type="text"
              class="zy-input form_input text_ient"
              placeholder="请输入专业"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zy-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">学习形式：</label>
            <a class="find_a">学习形式：</a>
            <input
              type="text"
              class="xs-input form_input text_ient"
              placeholder="请输入学习形式"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="xs-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">学历批次：</label>
            <a class="find_a">学习形式：</a>
            <select
              class="form_select xs-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            ></select>
            <a class="find_a"
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;批次：</a
            >
            <input
              type="text"
              class="form_input text_ient xx-pc-input"
              placeholder="请输入批次信息"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="xl-pc" />
        </div>
      </div>

      <div class="l-section">
        <h4>职业技能</h4>
        <div class="con">
          <div>
            <label for="">职业技能类别：</label>
            <a class="find_a">职业技能类别：</a>
            <input
              type="text"
              class="lb-input form_input text_ient"
              placeholder="请输入职业技能类别"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="lb-btn" />
        </div>
        <div class="con">
          <div>
            <label for=""
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;职业专业：</label
            >
            <a class="find_a">职业技能类别：</a>
            <select
              class="form_select lb-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            ></select>
            <a class="find_a" style="margin-left: 20px">报考专业：</a>
            <input
              type="text"
              class="mc-input form_input text_ient"
              placeholder="输入报考专业"
              maxlength="18"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zyzy-btn" />
        </div>
        <div class="con">
          <div>
            <label for=""
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;职业批次：</label
            >
            <a class="find_a"
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;批次：</a
            >
            <input
              type="text"
              id="zhiye-pc"
              class="form_input text_ient pc-input"
              placeholder="请输入批次信息"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zypc-btn" />
        </div>
      </div>

      <div class="l-section">
        <h4>职称评审</h4>
        <div class="con">
          <div>
            <label for="">职称等级：</label>
            <a class="find_a">职称等级：</a>
            <input
              type="text"
              class="zcdj-input form_input text_ient"
              placeholder="请输入职称评审别"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zcdj-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">职称系列：</label>
            <a class="find_a">职称系列：</a>
            <input
              type="text"
              class="zcxl-input form_input text_ient"
              placeholder="请输入职称系列"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zcxl-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">职称专业：</label>
            <a class="find_a">职称系列：</a>
            <select
              class="form_select zcxl-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            ></select>
            <a class="find_a" style="margin-left: 20px">报考专业：</a>
            <input
              type="text"
              class="zczy-input form_input text_ient"
              placeholder="请输入专业"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zczy-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">职称批次：</label>
            <a class="find_a"
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;批次：</a
            >
            <input
              type="text"
              id="zc-pc"
              class="form_input text_ient zcpc-input"
              placeholder="请输入批次信息"
              maxlength="20"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="zcpc-btn" />
        </div>
      </div>

      <div class="l-section" style="border-bottom: none">
        <h4>执业资格</h4>
        <div class="con">
          <div>
            <label for="">报考项目：</label>
            <a class="find_a">报考项目：</a>
            <input
              type="text"
              class="pxbk-input form_input text_ient"
              placeholder="输入报考项目"
              maxlength="18"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="pxbk-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">报考科目：</label>
            <a class="find_a">报考项目：</a>
            <select
              class="form_select pxbk-select"
              style="padding-left: 1%; width: 210px; background: #fff"
            ></select>
            <a class="find_a">考试科目：</a>
            <input
              type="text"
              class="pxks-input form_input text_ient"
              placeholder="输入考试科目"
              maxlength="18"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="pxkm-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">报考班次：</label>
            <a class="find_a"
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;班次：</a
            >
            <input
              type="text"
              class="pxbc-input form_input text_ient"
              placeholder="输入班次"
              maxlength="18"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="pxbc-btn" />
        </div>
        <div class="con">
          <div>
            <label for="">培训批次：</label>
            <a class="find_a"
              >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;批次：</a
            >
            <input
              type="text"
              id="px-pc"
              class="pxpc-input form_input text_ient"
              placeholder="输入批次"
              maxlength="18"
            />
          </div>
          <input type="button" value="添加" class="but_find" id="pxpc-btn" />
        </div>
      </div>
    </div>
    <script src="../../../js/jquery.js"></script>
    <script src="../../../js/common.js"></script>
    <script src="../../../layer_v2.1/layer/layer.js"></script>
    <script src="../../../js/laydate-master/laydate.js"></script>
    <script src="../../../bstable/js/bootstrap.min.js"></script>
    <script src="../../../bstable/js/bootstrap-table.js"></script>
    <script src="../../../bstable/js/bootstrap-table-zh-CN.min.js"></script>
    <script type="text/javascript">
      localStorage.setItem('name', '教务管理/课程信息维护');
      // 添加考试科目
      $('#pxkm-btn').on('click', function () {
        var val = $('.pxks-input').val();
        var id = $('.pxbk-select').val();
        if (id == 0 || !id) {
          alert('请先选择报考项目');
        }
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addTrainInfo',
          method: 'Post',
          data: {
            trainInfoName: val,
            trainId: id,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#xl-btn').on('click', function () {
        var val = $('.xl-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addEducation',
          method: 'Post',
          data: {
            educationName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getXl();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });
      $('#xl-pc').on('click', function () {
        var val = $('.xx-pc-input').val();
        var select = $('.xs-select').val();
        if (select == 0 || !select) {
          return alert('请选择学历形式');
        }
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addBatch',
          method: 'Post',
          data: {
            pid: select,
            trainType: 'education',
            batch: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      // 职业批次
      $('#zypc-btn').on('click', function () {
        var val = $('#zhiye-pc').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addBatch',
          method: 'Post',
          data: {
            trainType: 'occupation',
            batch: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      // 职称批次
      $('#zcpc-btn').on('click', function () {
        var val = $('#zc-pc').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addBatch',
          method: 'Post',
          data: {
            trainType: 'title',
            batch: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      // 培训批次
      $('#pxpc-btn').on('click', function () {
        var val = $('#px-pc').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addBatch',
          method: 'Post',
          data: {
            trainType: 'train',
            batch: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#xx-btn').on('click', function () {
        var val = $('.xlcc-input').val();
        var id = $('.xlxx-select').val();
        console.log('id', id);
        if (id == 0 || !id) {
          alert('请先选择学历');
        }
        console.log(id);
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addSchool',
          method: 'Post',
          data: {
            educationId: id,
            schoolName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              querySchool();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#xs-btn').on('click', function () {
        var val = $('.xs-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addMode',
          method: 'Post',
          data: {
            mode: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getXueXs();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#zy-btn').on('click', function () {
        var val = $('.zy-input').val();
        var eduId = $('#xl-cc').val();
        var id = $('.xx-select').val();
        var zycc = $('.zy-cc').val();
        if (zycc == 0 || !zycc) {
          alert('请先选学历');
        }
        if (id == 0 || !id) {
          alert('请先选择学校');
        }
        console.log(id);
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addCourse',
          method: 'Post',
          data: {
            educationId: eduId,
            courseName: val,
            schoolId: id,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#lb-btn').on('click', function () {
        var val = $('.lb-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addOccupation',
          method: 'Post',
          data: {
            occupationName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getZy();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#zyzy-btn').on('click', function () {
        var val = $('.mc-input').val();
        var id = $('.lb-select').val();
        if (id == 0 || !id) {
          alert('请选择职业技能类别');
        }
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addOccupationInfo',
          method: 'Post',
          data: {
            occupationId: id,
            occupationInfoName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#pxbc-btn').on('click', function () {
        var val = $('.pxbc-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addClasss',
          method: 'Post',
          data: {
            classs: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#zcdj-btn').on('click', function () {
        var val = $('.zcdj-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addTitle',
          method: 'Post',
          data: {
            titleName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#zcxl-btn').on('click', function () {
        var val = $('.zcxl-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addProfessionalSeries',
          method: 'Post',
          data: {
            professionalSeries: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getZc();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#pxbk-btn').on('click', function () {
        var val = $('.pxbk-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addTrain',
          method: 'Post',
          data: {
            trainName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getPxbk();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#kc-btn').on('click', function () {
        var val = $('.kc-input').val();
        var id = $('.kc-select').val();
        if (id == 0 || !id) {
          alert('请先选择课程类型');
        }
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addTrainInfo',
          method: 'Post',
          data: {
            trainInfoName: val,
            trainId: id,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#zczy-btn').on('click', function () {
        var val = $('.zczy-input').val();
        var select = $('.zcxl-select').val();
        if (select == 0 || !select) {
          alert('请选择职称系列');
        }
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addOccupationInfo',
          method: 'Post',
          data: {
            occupationId: select,
            occupationInfoName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      $('#pxbk-btn').on('click', function () {
        var val = $('.kclx-input').val();
        if (!val) return;
        $.ajax({
          url: baseUrl + 'education/addTrain',
          method: 'Post',
          data: {
            trainName: val,
          },
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            if (data.code === 500) {
              alert(data.message);
            } else {
              alert('添加成功');
              getKc();
            }
          },
          error: function (err) {
            alert('添加失败');
          },
        });
      });

      function getPxbk() {
        $.ajax({
          url: baseUrl + 'education/queryTrainList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].trainName +
                '</option>';
            }
            $('.pxbk-select').html(html_);
          },
        });
      }

      // 获取职称系列select
      function getZc() {
        $.ajax({
          url: baseUrl + 'education/queryProfessionalSeriesList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].professionalSeries +
                '</option>';
            }
            $('.zcxl-select').html(html_);
          },
        });
      }

      function getXl() {
        $.ajax({
          url: baseUrl + 'education/queryEducationList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            console.log('data', data);
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].educationName +
                '</option>';
            }
            $('.xl-select').html(html_);
            //alert(data[0].educationName);
          },
        });
      }

      function getXueXs() {
        $.ajax({
          url: baseUrl + 'education/queryModeList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            var dataObj = eval(data);
            // alert(dataObj);
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < dataObj.length; i++) {
              html_ +=
                '<option  value="' +
                dataObj[i].id +
                '" >' +
                dataObj[i].mode +
                '</option>';
            }
            // alert(html_)
            $('.xs-select').html(html_);
          },
        });
      }

      function getZy() {
        $.ajax({
          url: baseUrl + 'education/queryOccupationList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].occupationName +
                '</option>';
            }
            $('.lb-select').html(html_);
          },
        });
      }

      function getKc() {
        $.ajax({
          url: baseUrl + 'education/queryTrainList',
          async: false,
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].trainName +
                '</option>';
            }
            $('.kc-select').html(html_);
            //alert(data[0].educationName);
          },
        });
      }

      function querySchool(obj) {
        $.ajax({
          url: baseUrl + 'education/querySchoolList',
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          data: 'educationId=' + obj.value,
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].schoolName +
                '</option>';
            }
            $('.xx-select').html(html_);
          },
        });
      }

      function queryCourse(obj) {
        $.ajax({
          url: baseUrl + 'education/queryCourseList',
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          data: 'schoolId=' + obj.value,
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].courseName +
                '</option>';
            }
            $('.zy-select').html(html_);
            //alert(data[0].educationName);
          },
        });
      }

      function queryZhiCheng(obj) {
        $.ajax({
          url: baseUrl + 'education/queryCourseList',
          method: 'Post',
          headers: {
            Authorization: JSON.parse(localStorage.getItem('userInfo')).token,
          },
          data: 'schoolId=' + obj.value,
          success: function (data) {
            var html_ = '<option value="0">请选择</option>';
            for (var i = 0; i < data.length; i++) {
              html_ +=
                '<option  value="' +
                data[i].id +
                '" >' +
                data[i].courseName +
                '</option>';
            }
            $('.zy-select').html(html_);
            //alert(data[0].educationName);
          },
        });
      }

      getPxbk();
      getZc();
      getXl();
      getXueXs();
      getZy();
      getKc();
      // querySchool()
      // queryCourse()
    </script>
  </body>
</html>
